home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BlastDOS
/
[DOS_Application]_BIT_Software_-_BitCom_3.58c_-_Distribution_Disks.zip
/
VT100B.EMU
< prev
next >
Wrap
Text File
|
1990-06-01
|
4KB
|
227 lines
INITIAL
{ VT100 emulation file. Model=VT102, includes VT52 support }
z#origin(1)
z#setbuf(1,0);z#setbuf(3,0)
z#awrap(0)
z#setatt(7)
z#setmar(1,@mrow)
z#setins(0)
z#setflg(a,0) { =1 vt52, =0 ansi mode }
@f1 = 'if (z#flg(a)=0) "$1bOP" else "$1bP"'
@f2 = 'if (z#flg(a)=0) "$1bOQ" else "$1bQ"'
@f3 = 'if (z#flg(a)=0) "$1bOR" else "$1bR"'
@f4 = 'if (z#flg(a)=0) "$1bOS" else "$1bS"'
@NL-0 = 'if (z#flg(a)=0) "$1bOp" else "$1b?p"'
@NL-1 = 'if (z#flg(a)=0) "$1bOq" else "$1b?q"'
@NL-2 = 'if (z#flg(a)=0) "$1bOr" else "$1b?r"'
@NL-3 = 'if (z#flg(a)=0) "$1bOs" else "$1b?s"'
@NL-4 = 'if (z#flg(a)=0) "$1bOt" else "$1b?t"'
@NL-5 = 'if (z#flg(a)=0) "$1bOu" else "$1b?u"'
@NL-6 = 'if (z#flg(a)=0) "$1bOv" else "$1b?v"'
@NL-7 = 'if (z#flg(a)=0) "$1bOw" else "$1b?w"'
@NL-8 = 'if (z#flg(a)=0) "$1bOx" else "$1b?x"'
@NL-9 = 'if (z#flg(a)=0) "$1bOy" else "$1b?y"'
@NL-Dsh = 'if (z#flg(a)=0) "$1bOm" else "$1b?m"'
@NL-Dot = 'if (z#flg(a)=0) "$1bOn" else "$1b?n"'
@NL-Pls = 'if (z#flg(a)=0) "$1bOM" else "$1b?M"'
@F10 = 'if (z#flg(a)=0) "$1bOl" else "$1b?l"'
@uparr = '"$1b[A"'
@dnarr = '"$1b[B"'
@riarr = '"$1b[C"'
@lfarr = '"$1b[D"'
@del = '"$7f"'
END
INBUFFER
0x00 NUL
0x08 BS2
0x0b LF
0x0c LF
0x1a CAN
0x7f NUL
END
INBUFFER2
0x00 NUL
0x08 BS2
0x0b LF
0x0c LF
0x1a CAN
0x7f NUL
0x5f 0x20
0x60 0xfe
0x61 0x92
0x62 0x8b
0x63 0x9f
0x64 0x87
0x65 0x91
0x66 0xf8
0x67 0xf1
0x68 0xa5
0x69 0x9e
0x6a 0xd9
0x6b 0xbf
0x6c 0xda
0x6d 0xc0
0x6e 0xc5
0x6f 0xc4
0x70 0xc4
0x71 0xc4
0x72 0xc4
0x73 0xc4
0x74 0xc3
0x75 0xb4
0x76 0xc1
0x77 0xc2
0x78 0xb3
0x79 0xf3
0x7a 0xf2
0x7b 0xe3
0x7c 0xf7
0x7d 0x9c
0x7e 0xfa
END
OUTBUFFER
END
HOSTCODE
[20h z#lfnl(1)
[?1h
[?3h
[?4h z#setins(1)
[?5h z#setatt(112)
[?6h z#origin(2);poscur(1,1)
[?7h z#awrap(0)
[?8h
[?9h
[1h
[3h
[4h z#setins(1)
[5h z#setatt(112)
[6h z#origin(2);poscur(1,1)
[7h z#awrap(0)
[8h
[9h
[20l z#lfnl(2)
[?1l
[?2l z#setflg(a,1)
[?3l
[?4l z#setins(0)
[?5l z#setatt(7)
[?6l z#origin(1);poscur(1,1)
[?7l z#awrap(1)
[?8l
[?9l
[1l
[2l z#setflg(a,1)
[3l
[4l z#setins(0)
[5l z#setatt(7)
[6l z#origin(1);poscur(1,1)
[7l z#awrap(1)
[8l
[9l
(A z#setbuf(1,0)
(B z#setbuf(1,0)
(0 z#setbuf(2,0)
)A z#setbuf(3,0)
)B z#setbuf(3,0)
)0 z#setbuf(4,1)
[m z#setatt(7)
[0m z#setatt(7)
[1m z#setatt(14)
[4m z#setatt(1)
[5m z#setatt(128)
[7m z#setatt(112)
[0;1m z#setatt(14)
[0;4m z#setatt(1)
[0;5m z#setatt(128)
[0;7m z#setatt(112)
[\t;\br z#setmar(\\t,\\b);poscur(1,1)
[;r z#setmar(1,@mrow);poscur(1,1)
[r z#setmar(1,@mrow);poscur(1,1)
[;\br z#setmar(1,\\b);poscur(1,1)
[\nA z#curup(\\n,0)
[A z#curup(1,0)
[\nB z#curdn(\\n,0)
[B z#curdn(1,0)
[\nC z#curfwd(\\n)
[C z#curfwd(1)
[\nD z#curbak(\\n)
[D z#curbak(1)
[;\nH poscur(\\n,1)
[\nH poscur(1,\\n)
[\n;H poscur(1,\\n)
[H poscur(1,1)
[;H poscur(1,1)
[\r;\cH poscur(\\c,\\r)
[;\nf poscur(\\n,1)
[\nf poscur(1,\\n)
[\n;f poscur(1,\\n)
[f poscur(1,1)
[;f poscur(1,1)
[\r;\cf poscur(\\c,\\r)
A z#curup(1,0)
B z#curdn(1,0)
C z#curfwd(1)
D if\ (z#flg(a)==0)\ z#curdn(1,1)\ else\ z#curbak(1)
E z#curdn(1,1);poscur(1,@row)
K z#clreol
J z#clreos
H poscur(1,1)
Y%l%c poscur(expr(%c-31),expr(%l-31))
I z#curup(1,1)
M z#curup(1,1)
Z "$1b/Z"
7 z#savorg;z#savpos;z#savbuf
8 z#resorg;z#respos;z#resbuf
H z#tabset
[g z#tabclr
[0g z#tabclr
[3g z#tabcla
#3
#4
#5
#6
[K z#clreol
[0K z#clreol
[1K z#clrbol
[2K z#clrlin
[J z#clreos
[0J z#clreos
[1J z#clrbos
[2J clear
[P z#del(1)
[0P z#del(1)
[\nP z#del(\n)
[L z#inslin(1)
[0L z#inslin(1)
[\nL z#inslin(\n)
[M z#dellin(1)
[0M z#dellin(1)
[\nM z#dellin(\n)
[5n "$1b[0n"
[6n "$1b[@row.;@col.R"
[c "$1b[?1;0c"
[0c "$1b[?1;0c"
Z "$1b[?1;0c"
c z#origin(1);z#setbuf(1,0);z#setbuf(3,0);z#awrap(0);z#setmar(1,@mrow);
#8
[2;1y
[2;2y
[2;4y
[2;9y
[2;10y
[2;12y
[2;16y
[2;24y
[0q
[q
[1q
[2q
[3q
[4q
< z#setflg(a,0)
=
>
F z#setbuf(2,1)
G z#setbuf(1,1)
END